//
//  UIViewController+Utility.h
//  pickpic
//
//  Created by Jinxiao on 8/23/16.
//  Copyright © 2016 MicroDream. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIViewController (PP)

- (UIBarButtonItem *)setNavigationLeftTitle:(NSString *)title action:(void (^)(void))action;
- (UIBarButtonItem *)setNavigationLeftTitle:(NSString *)title titleColor:(UIColor *)titleColor action:(void (^)(void))action;

- (UIBarButtonItem *)setNavigationRightTitle:(NSString *)title action:(void (^)(void))action;
- (UIBarButtonItem *)setNavigationRightTitle:(NSString *)title titleColor:(UIColor *)titleColor action:(void (^)(void))action;

- (UIBarButtonItem *)setNavigationRightImage:(UIImage *)image action:(void (^)(void))action;
- (UIBarButtonItem *)setNavigationLefeImage:(UIImage *)image action:(void (^)(void))action;



- (BOOL)prefersNavigationBarHidden;

- (void)backItemDidPressed;

- (UIBarButtonItem *)preferredBackItem;
- (UIImage *)preferredBackImage;
- (NSString *)preferredBackText;

@end
